package com.example.android;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class AppDB {

    private static final int DATABASE_VERSION = 1;
    
    private static final String DATABASE_NAME = "hello";
    
    private static final String CREATE_TABLE_ACCOUNTS = "create table if not exists accounts (id integer primary key autoincrement, " +
    		"username text,password text);";
    
    private SQLiteDatabase db;
    
    public AppDB(Context ctx) {
        db = ctx.openOrCreateDatabase(DATABASE_NAME, 0, null);
        db.execSQL(CREATE_TABLE_ACCOUNTS);
    }
    
}
